package cn.itsource.pet.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.org.domain.Employee;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_search_master_message")
public class SearchMasterMessage extends BaseDomain {
    private String name;
    private Double price;
    private String age;
    private Integer gender;
    private String coatColor;
    private String resources;
    private Long petType;
    private String title;
    //0待审核 1:审核通过 2.驳回
    private Integer state = 0;
    private String address;
    //卖家的id 谁登陆就是谁出售,登录的时候把这个放到redis里面去
    private Long userId;
    private Long shopId;//没值
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime = new Date();

    @Transient
    private String typeName;
    //备注
    @Transient
    private String note;
}
